package com.swsc.ai.service;

import java.util.HashMap;
import java.util.Map;

/**
 * @describe:
 * @author: 容若
 * @created: 2024-08-09 9:12
 */
public class HandlerStrategyFactory {
    private static final Map<String,Strategy> map = new HashMap<>();
    static {
        map.put("docx",new HandlerDocxStrategy());
//        map.put("xlsx",new HandlerXlsxStrategy());
//        map.put("pptx",new HandlerPptxStrategy());
    }
    public static Strategy getStrategy(String type){
        return map.get(type);
    }
}
